package com.mqy.springmvc.exception;

/**
 * @author 13159 //作者
 * @version V1.0 //版本
 * @Project 2022.3.8MVCxiaojie
 * @Package com.mqy.springmvc.exception
 * @Description:
 * @Date 2022/3/8 20:52//日期
 * @Motto:放下杂念,只为迎接明天更好的自己
 */
/*异常捕获*/
public class MyBaseException extends RuntimeException{

    private int code;

    public MyBaseException(String message, int code) {
        super(message);
        this.code = code;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
